Repository navigation
feat(id): invite capability_pin term + redemption decision (#5959 §7) - #13150
Merged
Merged
Conversation
For #12922. The v2 invite terms and body gain the optional capability_pin { release_identity, table_version }: InviteTerms::with_capability_pin attaches it at issuance, sign_terms signs it into the body, child_terms takes it explicitly, and v1 bodies read as unpinned. The pin fits the 512-byte body budget as an identity plus a version; the message set itself is never carried. InviteBody::pin_redemption is the #5959 §7 redemption decision as a pure function of (pinned set, current set, fetch outcome) over the ReleaseMessageSetLookup seam: no pin -> NoPin; record unfetchable -> PinUnusable (an ordinary first connect); current set covered -> SeedBaseline (the pinned set narrowed to the current set); outgrown -> NoticeBeforeConnect (the uncovered part). The baseline store and the notice surface that consume the decision are #12921's. Tests: issuance attach, all four named oracles, unpinned -> NoPin, and the every-term round-trip now carries a pin. id-directory 287/287.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
dezren39
added a commit
that referenced
this pull request
Nov 24, 2026
Standalone 9-point sufficient-design record for the invite capability_pin term, extracted from the #5959 §7 design of record (AUDIT-7 Lane 6 DESIGN-GAPS found #12922 had no design document of its own). Records slice 1 as landed (PR #13150) with file:line evidence, slices 2-3 dependency-ordered against #12921, open questions Q1-Q4 each naming a decider. Refs #12922
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #12922 — the first landable slice per the dependency verdict recorded there: #12983 (the #5751 terms extension) has landed, so the pin has a terms type to live on.
What lands
CapabilityPin { release_identity, table_version }as an optional term onInviteTermsandInviteBody(v2 postcard form; v1 bodies read as unpinned). The pin carries an identity and a version, never the message set — the pinned release's registry record (id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958 §4) is immutable and content-addressed, so the set is recomputed from the identity. The every-term round-trip test asserts the body stays inside the 512-byte budget with a pin attached.InviteTerms::with_capability_pinattaches at issuance;sign_termssigns the pin into the body;child_termstakes the pin explicitly, like the other optional terms.InviteBody::pin_redemption(lookup, current)— the id: design: capability-change notices on reconnect — expansion and sideways changes #5959 §7 decision as a pure function of (pinned set, current set, fetch outcome) over the newReleaseMessageSetLookupseam:NoPinPinUnusable(the pin is ignored; an ordinary first connect)SeedBaseline(the pinned set narrowed to the current set — never wider than either)NoticeBeforeConnect(the uncovered part of the current set)Coverage here is set inclusion over the sets the lookup returns; the subsumption-aware comparison of #5999 §6 is #12921's layer, which also owns the baseline store and the notice surface that consume this decision. #12922 stays open on that wiring.
Verification
cargo test -p id-directory— 287 passed / 0 failed (281 on the base + 6 new: issuance attach, the issue's four oracles, unpinned → NoPin; the every-term round-trip now carries a pin). Re-run green after rebase onto current main.cargo fmt -p id-directory -- --check— clean.cargo clippy -p id-directory --all-targets— no warning sites in the changed files (one doc-paragraph site found in the first pass and fixed).cargo check -p id --test invitescompiles clean against the new API. The full facade test execution was not run: its build compiles the whole workspace graph and did not finish under the current multi-lane broker load; the compile check plus the grep-verified absence of literalInviteBody/InviteTermsconstructions orchild_termscallers outside this module stand in for it, and the crate suite above covers the behavior.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.